package com.example.study.untils;

/**
 * Created by gl on 2017/4/11.
 */
public class PublicMethod {
    /**
     * 判断是否为空值或者null值
     */
    public static boolean judgeNotEmptyOrNull(String string){
        if (string==null||"".equals(string))
            return false;
        return string.trim().length()!=0;
    }
    /**
     * 与上面相反
     */
    public static boolean judgeEmptyOrNull(String string){
        return !judgeNotEmptyOrNull(string);
    }
}
